<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix = "s" uri ="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<s:head theme="simple"/>
  </head>
  
  <body>
    税收信息总表
    <!-- 总表 -->
      
      <form method="post" action="taxAllInfo!addTaxAllInfo">
    	添加总分类：<br>
    	总分类名：<input type="text" name="infoName"/>
    	总分类备注：<input type="text" name="infoInfo"/>
    	<input type="submit" value="提交"/>
    </form><br>
    
  <!--   <form method="post" action="admin!deleteTaxAllInfo">
    	删除总分类<br>
    	Id：<input type="text" name="infoId"/>
    	
    	<input type="submit" value="删除"/>
    </form><br> -->
    
    <hr/>
    	
    	<table border="1">
    	
    	<tr>
    			<td>ID</td>
    			<td>名称</td>
    			<td>备注</td>
    			<td colspan="2">操作</td>
    			
    	</tr>
    	  <s:iterator value="#request.taxAllInfoList" id="taxAllInfo">
    	<tr>
    		<td>    
    			<a href="zyClass!showZyClassByPidAdmin?pid=<s:property value='#taxAllInfo.infoId'/>">			 
    				<s:property value="#taxAllInfo.infoId"/> 
    			</a>			
    		</td>
    		<td>    
    			<a href="zyClass!showZyClassByPidAdmin?pid=<s:property value='#taxAllInfo.infoId'/>">			 
     				<s:property   value="%{#taxAllInfo.infoName}"/>    			
    			</a>
    		</td>
    		<td>    			 
    				<s:property  value="%{#taxAllInfo.infoInfo}"/>    			
    		</td>
    		<td>
    		<a href="taxAllInfo!deleteTaxAllInfo?infoId=<s:property value='#taxAllInfo.infoId'/>">
    	 		删除
    	 	</a>
    	 	</td>
    	 	<td>
    	 		<a href="taxAllInfo!showTaxAllInfoEdit?infoId=<s:property value='#taxAllInfo.infoId'/>">
    	 			编辑
    	 		</a>
    		
    		</td>
    	 </tr> 
    	
    	
    	 </s:iterator>
    	</table>
  </body>
</html>
